package del3;

import static del3.StatusCode.HTTP400;
import static del3.StatusCode.HTTP401;
import static del3.StatusCode.HTTP402;
import static del3.StatusCode.HTTP403;
import static del3.StatusCode.HTTP404;
import static del3.StatusCode.HTTP405;
import static del3.StatusCode.HTTP406;

public enum StatusCode {
	HTTP400("400 Bad request"),
	HTTP401("401 Unauthorized"),
	HTTP402("402 Payment Required"),
	HTTP403("403 Forbidden"),
	HTTP404("404 Not Found"),
	HTTP405("405 Method Not Allowed"),
	HTTP406("406 Not Acceptable");
	
	private String codeText;
	
	StatusCode(String string){
		codeText = string;
	}
	
	public static void sendStatus(StatusCode sc){
		System.out.println(sc.codeText);
	}
	
	public static void main(String[] args){
		StatusCode.sendStatus(HTTP400);
		StatusCode.sendStatus(HTTP401);
		StatusCode.sendStatus(HTTP402);
		StatusCode.sendStatus(HTTP403);
		StatusCode.sendStatus(HTTP404);
		StatusCode.sendStatus(HTTP405);
		StatusCode.sendStatus(HTTP406);
	}
}
